OpenGL 3D Viewing

1. Create an SFML/OpenGL project with the code here;

2. Add the assimp asset import library to your project (we will use it for 3D matrix transformations).

3. Study the code here. It shows how to manipulate assimp vectors and matrices in code.

4. Below is the skeleton of a camera class. You should add code to your project and complete the functions marked TODO. (The MoveForwardBack function is done for you).

 

5. You can add a camera object to you app (see code below). The camera defaults to being positioned on the origin, looking along the z-axis

6. In your event handler code you should add the following

7. You tell OpenGL about the camera position, using the following code at the start of each render;

8. Your camera should be able to move left/right/up/down, and turn left/right,up/down